package com.wicket.okrbff.biz.service.dto.res;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffBaseMetadataObjectPropertyDto
 * @使用场景
 */
@Data
public class BffBaseMetadataObjectPropertyDto implements Serializable {

    /**
     * 对象属性ID:
     */
    @ApiModelProperty("对象属性ID")
    private String objectPropertyId;

    /**
     * 对象属性标识:
     */
    @ApiModelProperty("对象属性标识")
    private String objectPropertyCode;

    /**
     * 对象属性别名:
     */
    @ApiModelProperty("对象属性别名")
    private String objectPropertyAlias;
    /**
     * 对象属性名称:
     */
    @ApiModelProperty("对象属性名称")
    private String objectPropertyName;
    /**
     * 业务对象中文名:
     */
    @ApiModelProperty("业务对象中文名")
    private String businessObjectCnName;
    /**
     * 是否状态:
     */
    @ApiModelProperty("是否状态")
    private String isStatus;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     * 个人账号ID:
     */
    @ApiModelProperty("个人账号ID")
    private String userId;
    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;
    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String operationName;
    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String operationNickName;
    /**
     * 对象属性类型:
     */
    @ApiModelProperty("对象属性类型")
    private String objectPropertyTypeCode;
    /**
     * 是否枚举字段:
     */
    @ApiModelProperty("是否枚举字段")
    private String isEnumeration;
    /**
     * 是否主键:
     */
    @ApiModelProperty("是否主键")
    private String isPrimaryKey;
    /**
     * 字段更新是否前端显示:
     */
    @ApiModelProperty("字段更新是否前端显示")
    private String isRecordVersion;
    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffBaseMetadataObjectPropertyDto that = (BffBaseMetadataObjectPropertyDto) o;
      return  objectPropertyId == that.objectPropertyId&&objectPropertyCode == that.objectPropertyCode&&objectPropertyAlias == that.objectPropertyAlias&&objectPropertyName == that.objectPropertyName&&businessObjectCnName == that.businessObjectCnName&&isStatus == that.isStatus&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&userId == that.userId&&userFace == that.userFace&&operationName == that.operationName&&operationNickName == that.operationNickName&&objectPropertyTypeCode == that.objectPropertyTypeCode&&isEnumeration == that.isEnumeration&&isPrimaryKey == that.isPrimaryKey&&isRecordVersion == that.isRecordVersion&&orderNumber == that.orderNumber&&isArchive == that.isArchive&&subjectLifeCycle == that.subjectLifeCycle&&idCardName == that.idCardName&&nickName == that.nickName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), objectPropertyId,objectPropertyCode,objectPropertyAlias,objectPropertyName,businessObjectCnName,isStatus,operationInductionId,operateTime,userId,userFace,operationName,operationNickName,objectPropertyTypeCode,isEnumeration,isPrimaryKey,isRecordVersion,orderNumber,isArchive,subjectLifeCycle,idCardName,nickName);
    }
}
